﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooManagersResourceManagerV2RuntimeLoadAssetHandlerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler);
			Utils.BeginObjectRegister(type, L, translator, 0, 1, 1, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Cancel", _m_Cancel);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "loadAssetCallbacks", _g_get_loadAssetCallbacks);
            
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "Create", _m_Create_xlua_st_);
            
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetUpdateCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 3))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback _loadAssetDependencyAssetCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 3);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetDependencyAssetCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 4))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 4);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetUpdateCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 4))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback _loadAssetDependencyAssetCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 4);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetDependencyAssetCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 5 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 4) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 5))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 4);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback _loadAssetDependencyAssetCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 5);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetUpdateCallback, _loadAssetDependencyAssetCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 2))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 2);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetUpdateCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 2 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 2))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback _loadAssetDependencyAssetCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 2);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetDependencyAssetCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetUpdateCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 3))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback _loadAssetDependencyAssetCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 3);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetDependencyAssetCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				if(LuaAPI.lua_gettop(L) == 4 && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3) && translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 4))
				{
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3);
					Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback _loadAssetDependencyAssetCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 4);
					
					var gen_ret = new Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler(_loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetUpdateCallback, _loadAssetDependencyAssetCallback);
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Cancel(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler gen_to_be_invoked = (Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Cancel(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Create_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 4)) 
                {
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback _loadAssetDependencyAssetCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetDependencyAssetCallback>(L, 4);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler.Create( _loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetUpdateCallback, _loadAssetDependencyAssetCallback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3)) 
                {
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback _loadAssetUpdateCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetUpdateCallback>(L, 3);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler.Create( _loadAssetSuccessCallback, _loadAssetFailureCallback, _loadAssetUpdateCallback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2)) 
                {
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 2);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler.Create( _loadAssetSuccessCallback, _loadAssetFailureCallback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler.Create!");
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_loadAssetCallbacks(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler gen_to_be_invoked = (Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.loadAssetCallbacks);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
		
		
		
		
    }
}
